<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a=[3,5,1,8,9,6];
        Array.prototype.show=function(){
            for(let i=0;i<this.length;i++){
                console.log(this[i]);
            }
        }
       var ret= a.filter(v=> v>3);
        ret.show();//遍历打印数组的每个元素
    </script>
</body>
</html>